package com.abc.service;

import com.abc.entity.*;
import com.abc.service.ex.InsertException;
import com.abc.service.ex.UsernameDuplicateException;

import java.util.List;

public interface IUserService {
    void reg(UserRegDto userRegDto) throws UsernameDuplicateException, InsertException;
    /**
     * 登录认证
     * @param loginDTO 登录信息
     */
    void login(UserLoginDTO loginDTO);
    User selectOneUser(String username);
    List<Workers> list(String name);
    List<Ruzhi> listRuzhi(String gonghao);
    Workers listById(String id);
    int deleteWorkers(String id);
    int deleteRuzhi(String id);
    int updateWorkers(Workers workers);
    int updateRuzhi(Ruzhi ruzhi);
    int insertWorkers(Workers workers);
    int insertRuzhi(Ruzhi ruzhi);
    Ruzhi listByIdRuzhi(String id);
}
